/*
 * Network.cpp
 *
 *  Created on: Mar 8, 2011
 *      Author: alan
 */

#include "Network.h"


Network::Network()
{
	port = DEFAULT_PORT;
	packet = NULL;
}

Network::Network(string _hostname)
{
	port = DEFAULT_PORT;
	packet = NULL;
	hostname = _hostname;
}


Network::Network(unsigned _port)
{
	port = _port;
	packet = NULL;
}


Network::Network(string _hostname, unsigned _port)
{
	port = _port;
	hostname = _hostname;
	packet = NULL;
}


Network::~Network()
{
	// Delete packet
	if(packet)
		delete packet;
}
